package com.headwind.logistics.system.service.impl;

import com.headwind.logistics.system.dto.IntegralDto;
import com.headwind.logistics.system.mapper.IntegralMapper;
import com.headwind.logistics.system.service.intl.IntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author你爸爸 Date2020/7/24 16:46
 * Version 1.0
 * DESCRIPTION
 */
@Service
public class IntegralServiceImpl implements IntegralService {
    @Autowired
    private IntegralMapper integralMapper;

    @Override
    public List<IntegralDto> selectIntegral(Integer page, Integer rows) {
        if (page != null){
            page = (page-1)*rows;
        }
        return integralMapper.selectIntegral(page ,rows);
    }
}
